package co.msk8.client.command.action;

import co.msk8.client.command.Action;
import co.msk8.client.command.result.SubResult;

public class SubAction implements Action<SubResult> {

	
	private int a;
	
	private int b;
	
	public SubAction() {
		this(0,0);
	}
	
	public SubAction(int a, int b) {

		this.a = a;
		this.b = b;
	}
	
	public int getA() {
		return a;
	}

	public int getB() {
		return b;
	}

	
	@Override
	public boolean equals(Object obj) {
		
		if (obj instanceof SubAction) {
			
			SubAction toCompare = (SubAction) obj;
			if (toCompare.getA() == this.getA() && toCompare.getB() == this.getB()) {
				return true;
			}
		} 
		return false;
	}

}
